import React, { Component } from 'react';
import ExportTableToExcel from './ExportTableToExcel';

export default class Demo extends Component {
  render() {
    return (
      <ExportTableToExcel>
        <div>
        <table border='1' align='center'>
          <thead>
            <tr>
              <th>Firstname</th>
              <th>Lastname</th>
              <th>Email</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td>John</td>
              <td>Doe</td>
              <td>john@example.com</td>
            </tr>
            <tr>
              <td>Mary</td>
              <td>Moe</td>
              <td>mary@example.com</td>
            </tr>
            <tr>
              <td>July</td>
              <td>Dooley</td>
              <td>july@example.com</td>
            </tr>
          </tbody>
        </table>
        </div>
      </ExportTableToExcel>
    );
  }
}
